<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/28 0028
 * Time: 下午 6:58
 */
namespace app\common\exception;

use think\Exception;

class ApiException extends Exception{
    public function __construct(array $apiErrConst,\Throwable $previous = null)
    {
        $code = $apiErrConst[0];
        $msg = $apiErrConst[1];

        parent::__construct($msg, $code, $previous);
    }

}